import requests
from config import RunConfig

def 详情(para):
    response = requests.get(
        url=RunConfig.url + "complete/report/detail/{approveId}?methodId=&page=1&perPage=10",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 审阅(para):
    response = requests.get(
        url=RunConfig.url + "complete/report/approve/{approveId}",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 详情(para):
    response = requests.get(
        url=RunConfig.url + "complete/report/detail/{id}/{implementType}/{exploitMainId}?methodId=&page=1&perPage=10",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 分页查询(para):
    response = requests.post(
        url=RunConfig.url + "/complete/report/page?page=1&perPage=10",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 送审(para):
    response = requests.get(
        url=RunConfig.url + "complete/report/submit/{approveId}",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 下载(para):
    response = requests.get(
        url=RunConfig.url + "complete/report/download/{approveId}",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 编辑(para):
    response = requests.post(
        url=RunConfig.url + "/complete/report/batchEdit",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 下载(para):
    response = requests.get(
        url=RunConfig.url + "complete/report/download/{id}/{implementType}/{exploitMainId}",
        headers=RunConfig.headers,
        verify=False
    )
    return response
